package com.dgut.lab.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Document(collection = "answers")
public class Answer {
    @Id
    private ObjectId answerId;
    private Map<String,Object> answers;
    private ObjectId version;
    private String username;
    private Date date;
}
